package com.yiquan.user.client;

import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Tyrone
 * @date 2022/4/9 13:07
 */
@FeignClient("yiquan-video")
public interface VideoClient {

    @RequestMapping(value = "/video/getUserVideoTotalThumbs",method = RequestMethod.GET)
    public Result getUserVideoTotalThumbs(@RequestParam Long userId);

    @RequestMapping(value = "/video/getVideoByVideoId", method = RequestMethod.GET)
    public Result findByVideoId(@RequestParam Long videoId);

    @GetMapping("/video/getVideoByUserIdAndOperate")
    public Result getVideoByUserIdAndOperateUserId(@RequestParam Long userId,@RequestParam Long videoId);

}
